//
// Created by htlin on 2021/3/5 0005.
//

#ifndef LIBUVTEST_THREADASYNCDATA_H
#define LIBUVTEST_THREADASYNCDATA_H

#include "header.h"

class ThreadAsyncData {
public:
    explicit ThreadAsyncData(void* mainData) : userData(mainData) {}

    inline void* getMainData() { return userData; }

    inline void setSubData(void* data) { syncData = data; }

    inline void* getSubData() { return syncData; }

private:
    void* userData;
    void* syncData{};
};


#endif //LIBUVTEST_THREADASYNCDATA_H
